package com.dailyblue.project.estate.commons.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.project.estate.commons.bean.Power;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther:Liu
 * @Testname:Power
 * @Date:2025/9/21 15:55
 */
@Mapper
public interface PowerMapper extends BaseMapper<Power> {
    @Select("Select * from power where id in (select power_id from student_power where student_id=#{studentId})")
    List<PowerMapper> findPowersByStudentId(String studentId);
}
